Optimizing rendering of layouts

Calculating a layout for an object or a sub-tree in the scene graph can be a computationally intensive task. In general, any movement in any object of, for example, a grid layout, causes recalculation of the layout, which in turn slows down framebuffer updating.

To optimize the rendering of layouts you have to reduce the number of calls to the kzuObjectNodeInvalidateLayout, which causes recalculation of the layout for the next frame:

Viewing animation and layout performance of your application

To view the animation and layout performance of your Kanzi your application:

Using render transformations

Because render transformations do not recalculate a layout, use render transformations instead of other transformations.

To use render transformations:

  1. In the Project select the object for which you want to apply a transformation.
  2. In the Properties click Add Properties, and add the Render Transformation property.
  3. Use the Render Transformation property to apply the transformation for the object you selected in the first step.

See also

Rendering best practices

Partial rendering

Setting layers for efficient rendering

Preventing overdraw with sorting filters

Rendering static content

Rendering transparent objects

Measuring the performance of your Kanzi application

Best practices